#ifndef DECORATOR_H
#define DECORATOR_H

#include"component.h"

class IDecorator:public IBeverage{

public:
    IDecorator(IBeverage *be):m_pBeverage(be){}
    string Name()override{
        return m_pBeverage->Name();
    }
    double Cost()override{
        return m_pBeverage->Cost();
    }
protected:
    IBeverage *m_pBeverage;
};
#endif // DECORATOR_H
